package com.yami.shop.user.common.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yami.shop.user.common.model.UserGasInfo;

public interface UserGasInfoService extends IService<UserGasInfo> {


    /**
     * 添加gas
     * @param userId
     * @param gasNumber
     * @param
     */
    void saveGasNumberByUserId(String userId,int gasNumber);


    /**
     *  减少gas
     * @param userId
     * @param gasNumber
     * @param
     */
    void reduceGasNumberByUserId(String userId,int gasNumber);


    Boolean checkHaveGasNumberByUserId(String userId,int gasNumber);
}
